package at.tuwien.seminar.scrum1.converter;

import at.tuwien.seminar.scrum1.model.Room;
import at.tuwien.seminar.scrum1.proxies.RoomProxy;
import org.apache.wicket.util.convert.IConverter;


public class RoomConverter implements IConverter {

    public Object convertToObject(String input, java.util.Locale locale) {
        return RoomProxy.getInstance().getById(RoomProxy.getInstance().extractId(input));
    }

    public String convertToString(java.lang.Object o, java.util.Locale locale) {
        return o.toString();
    }
}
